package com.angel.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.angel.entity.bean.Will;


public class WillBeanList implements Serializable {
	private static final long serialVersionUID = 6771123033782005593L;
	private String isSuccess;
	private List<WillBean> result;
	
	public WillBeanList() {
		this.isSuccess = "0";
	}
	
	public WillBeanList(List<Will> list) {
		this.isSuccess = "1";
		this.result = new ArrayList<WillBean>();
		for (Will will : list) {
			WillBean wb = new WillBean(will);
			this.result.add(wb);
		}
		
		
	}

	public String getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(String isSuccess) {
		this.isSuccess = isSuccess;
	}

	public List<WillBean> getResult() {
		return result;
	}

	public void setResult(List<WillBean> result) {
		this.result = result;
	}
}
